﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Database;

namespace DatabaseDebuger
{
    class Program
    {
        
        static void Main(string[] args)
        {
            List<DatabaseClass.User> Users = new List<DatabaseClass.User>();
            DatabaseClass d = new DatabaseClass();
            List<DatabaseClass.Tourney> Tourneys = new List<DatabaseClass.Tourney>();
            /*for (int i = 0; i < Users.Count(); i++)
            {
                Console.WriteLine(Users[i].id);
                Console.WriteLine(Users[i].username);
                Console.WriteLine(Users[i].password);
                Console.WriteLine(Users[i].firstName);
                Console.WriteLine(Users[i].lastName);
                Console.WriteLine(Users[i].sex);
                Console.WriteLine(Users[i].type);
            }
            Console.ReadLine();*/
            //d.RegisterUser("hej", "lol", "adam", "lundberg", "male", "pro", ref Users);
            //d.RegisterUser("tja", "tjena", "adam", "lundberg", "male", "pro", ref Users);
            //d.RegisterUser("tjabba", "tjenarareasraer", "adam", "lundberg", "male", "pro", ref Users);
            //d.DeleteUser("tjabba", ref Users);
            d.DeleteUser("hej", ref Users);
            d.CreateTourney(10, 5, 15, "male", "Kalle Anka-kuppen");
            d.ReadTourneyFromFile(ref Tourneys);
        }
    }
}
